<template>
<!--	<router-view v-slot="{ Component, route }">-->
<!--		&lt;!&ndash; 路由缓存 &ndash;&gt;-->
<!--		<keep-alive>-->
<!--			<component :is="Component" v-if="route?.meta?.isKeepAlive || route?.meta?.isRouterKeepAlive"-->
<!--				:key="route?.meta?.isRouterKeepAlive ? route?.fullPath : route?.name" />-->
<!--		</keep-alive>-->

<!--		&lt;!&ndash; 不缓存 &ndash;&gt;-->
<!--		<component :is="Component" v-if="(!route?.meta?.isKeepAlive) && (!route?.meta?.isRouterKeepAlive)"-->
<!--			:key="route.name" />-->
<!--	</router-view>-->
  <RouterView/>
</template>

<script setup name="App">
onMounted(async () => {
	const handleLoadUrl = inject('$provideLoadUrl')
	const getGoodsnum = inject('$provideGoodsnum')
	const getLang = inject('$provideLang')
	const path = handleLoadUrl()
	if (!['/', '/login'].includes(path)) {
		await getGoodsnum();
		await getLang();
	}

});
</script>
